
<div class="noidung" id='here'>
    <div style="padding-left: 0px; width: 100%">
        <div class="colleft">
            <div class="bgtopic">
                <div class="topic_title"> Quảng cáo</div>
            </div>
            <div class="quangcao a img">
                <a href="#">
                    <img src="<?php echo Yii::app()->request->baseUrl; ?>/upload/quangcao/banner-1.jpg" width="220">
                </a>
                <a href="#">
                    <img src="<?php echo Yii::app()->request->baseUrl; ?>/upload/quangcao/banner-2.jpg" width="220">
                </a>
                <a href="#">
                    <img src="<?php echo Yii::app()->request->baseUrl; ?>/upload/quangcao/banner-3.jpg" width="220">
                </a>
                <a href="#">
                    <img src="<?php echo Yii::app()->request->baseUrl; ?>/upload/quangcao/banner-4.jpg" width="220">
                </a>
            </div>
        </div>
        <div class="colright" style="margin: 0px">
            <div style="margin-left: 7px; width: 100%">
                <?php
                $css = "";
                $dem = null;
                if ($pages != null) {
                    $dem = $pages->title;

                    if (strlen($dem) >= 60) {
                        $css = "bgtopic600";
                    } else if (strlen($dem) >= 39) {
                        $css = "bgtopic500";
                    } else {
                        $css = "bgtopic340";
                    }
                }
                ?>
                <div class="<?php echo $css; ?>">
                    <div class="topic_title">
                        <?php
                        if ($pages != null) {
                            echo $pages->title;
                        }
                        ?>
                    </div>
                </div>
                <div style="width: 680px; padding-right: 10px; padding-bottom: 10px; ">
                    <?php
                    if ($pages != null) {
                        echo $pages->content;
                    } else {
                        echo '<div style="color:red;font-weight: bold;font-size: 15pt;">Không tìm thấy trang bạn tìm</div>';
                    }
                    ?>
                </div>
            </div>
        </div>
    </div>

    <div style="clear: both"></div>
</div>